home *** CD-ROM | disk | FTP | other *** search
/ ftp.mactech.com 2010 / ftp.mactech.com.tar / ftp.mactech.com / machack / Hacks97 / WarriorsProgress.sit / Warrior’s Progress / source code / Source / CWWatcher.h < prev    next >
Text File  |  1997-06-28  |  1KB  |  56 lines

  1. // CWWatcher.h
  2.  
  3. #ifndef CWWatcher_h
  4. #define CWWatcher_h
  5.  
  6. #ifndef QDPatchBlock_h
  7. #include "QDPatchBlock.h"
  8. #endif
  9. #ifndef Str_h
  10. #include "Str.h"
  11. #endif
  12. #ifndef Announcer_h
  13. #include "Announcer.h"
  14. #endif
  15.  
  16. class WindowObject;
  17. class CompileStatistics;
  18.  
  19. class CWWatcher: private QDPatchBlock,
  20.                       public Announcer
  21.   {
  22.     private:
  23.         String255 file;
  24.         int32 fileLine;
  25.         uint32 filesLeft;
  26.         uint32 oldLines;
  27.         uint32 totalLines;
  28.         uint32 numberToIgnore;
  29.         
  30.         static ConstData Partition();
  31.         static const WindowObject *ToolBar();
  32.  
  33.         virtual void DrawText( ConstData text,
  34.                                       Point numerator,
  35.                                       Point denominator );
  36.     
  37.         void Count();
  38.         
  39.         void SeeUncompiledFile( ConstPString name );
  40.         
  41.         static CompileStatistics stats;
  42.         
  43.     public:
  44.         CWWatcher();
  45.         ~CWWatcher();
  46.         
  47.         uint32 FilesLeft() const    { return filesLeft; }
  48.         uint32 TotalLines() const    { return totalLines; }
  49.         
  50.         ConstPString File() const        { return file; }
  51.         uint32 FileLine() const            { return fileLine; }
  52.         uint32 CompiledLines() const    { return fileLine + oldLines; }
  53.   };
  54.  
  55. #endif
  56.